import React from 'react'
import {NavLink,Link ,Routes,Route, Outlet,useLocation,useParams,useSearchParams, useResolvedPath,useRouteMatch} from 'react-router-dom'

export default function Page3(props) {
  // passName和state用这个获取
  const locationed=useLocation()
  console.log(locationed,'useLocation');
  // 感觉没啥用
    const path = useResolvedPath('ww');
  console.log(path,'useResolvedPath');
  // 获取search
  let [q] = useSearchParams()
  console.log(q.get('to') ,'useSearchParams');
  // 获取params
      const useParamsw = useParams();
  console.log(useParamsw,'useParams');
  return (
    <div>
       重定向
    </div>
  )
}
